﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;

public partial class MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["UserTypeId"] != null && Convert.ToInt32(Session["UserTypeId"]) == 1)
        {
            spacer1.Visible = true;
            group1.Visible = true;
            customer1.Visible = true;
        }
        else
        {
            spacer1.Visible = false;
            group1.Visible = false;
            customer1.Visible = false;
        }

    }

    protected void btnLogout_Click(object sender, EventArgs e)
    {
        FormsAuthentication.SignOut();
        Session["LoginName"] = "";
        Session["UserType"] = "";
        Session["MobileNumber"] = "";
        Session["EmailId"] = "";
        Response.Redirect("Home.aspx");
    }
}
